import React from'react';
import { View, Text, StyleSheet, Image, TouchableOpacity } from'react-native';
import { useNavigation } from '@react-navigation/native';

const ProfileScreen = () => {
  const navigation = useNavigation() as any;
  return (
    <View>消息</View>
  );
};

const styles = StyleSheet.create({
  container: {
    flex: 1,
    backgroundColor: '#f4f4f4',
  },
  header: {
    flexDirection: 'row',
    justifyContent: 'space-between',
    alignItems: 'center',
    padding: 20,
    backgroundColor: '#fff',
  },
  userInfo: {
    flexDirection: 'row',
    alignItems: 'center',
  },
  avatar: {
    width: 50,
    height: 50,
    borderRadius: 25,
  },
  userDetails: {
    marginLeft: 10,
  },
  name: {
    fontSize: 18,
    fontWeight: 'bold',
  },
  points: {
    flexDirection: 'row',
    alignItems: 'center',
    marginTop: 5,
  },
  pointIcon: {
    width: 20,
    height: 20,
    marginRight: 5,
  },
  pointNum: {
    fontSize: 16,
  },
  warning: {
    fontSize: 16,
    color: '#f00',
  },
  subscribeButton: {
    backgroundColor: 'linear-gradient(to right, #007AFF, #5E60CE)',
    borderRadius: 10,
    padding: 15,
    margin: 20,
    flexDirection: 'row',
    justifyContent: 'space-between',
    alignItems: 'center',
    shadowColor: '#000',
    shadowOffset: { width: 0, height: 3 },
    shadowOpacity: 0.2,
    shadowRadius: 5,
    elevation: 3, // for Android
  },
  buttonContent: {
    flexDirection: 'row',
    alignItems: 'center',
  },
  buttonIcon: {
    width: 30,
    height: 30,
    marginRight: 10,
  },
  buttonText: {
    fontSize: 18,
    fontWeight: 'bold',
    color: '#fff',
  },
  subText: {
    fontSize: 14,
    color: '#fff',
  },
  ctaButton: {
    width:100,
    height:40,
    backgroundColor: '#fff',
    borderRadius: 10,
    padding: 10,
    paddingHorizontal: 20,
    shadowColor: '#000',
    shadowOffset: { width: 0, height: 2 },
    shadowOpacity: 0.2,
    shadowRadius: 4,
    elevation: 2, // for Android
  },
  ctaText: {
    fontSize: 16,
    fontWeight: 'bold',
    color: '#007AFF',
  },
  listContainer: {
    backgroundColor: '#fff',
    borderRadius: 10,
    overflow: 'hidden',
  },
  listItem: {
    padding: 20,
    borderBottomWidth: 1,
    borderBottomColor: '#e0e0e0',
    flexDirection: 'row',
    justifyContent: 'space-between',
    alignItems: 'center',
  },
  listTitle: {
    fontSize: 18,
  },
  listDesc: {
    fontSize: 14,
    color: '#777',
    marginTop: 5,
  },
  arrowIcon: {
    width: 20,
    height: 20,
  },
  subListContainer: {
    flexDirection: 'row',
    flexWrap: 'wrap',
    padding: 10,
  },
  subListItem: {
    backgroundColor: '#e6f2ff',
    borderRadius: 10,
    padding: 5,
    paddingHorizontal: 10,
    margin: 5,
  },
  subListText: {
    fontSize: 14,
  },
});

export default ProfileScreen;